package com.daydayup.learn.aop;


import cn.hutool.core.util.IdUtil;
import org.springframework.boot.SpringBootVersion;
import org.springframework.core.SpringVersion;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class PayAopReviewController {

    @Resource
    private PayService payService;

    @GetMapping("/pay/aop")
    public String pay() {
        System.out.println(SpringVersion.getVersion()+"\t"+ SpringBootVersion.getVersion());
        payService.pay();
        return IdUtil.simpleUUID();
    }
}
